package com.example.uploadattachment.service;

import com.example.uploadattachment.model.ReceiveFileEntity;
import com.jcraft.jsch.SftpException;

import java.io.IOException;

/**
 * 文件服务类
 *
 * @author 何逸诚
 * @date 2023/12/6 15:40
 */
public interface FileService {
    /**
     * 上传文件
     *
     * @param receiveFileEntity
     * @param IfSftp
     * @return
     * @throws IOException
     */
    ReceiveFileEntity uploadFile(ReceiveFileEntity receiveFileEntity, boolean IfSftp) throws IOException, SftpException;
}
